package com.zretc.dao;

import com.zretc.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface CommentMapper {

    /**
     * 获取卖家评论的数量
     * @param sellerAccount
     * @return
     */
    Integer getCountComment(String sellerAccount);

    /**
     * 获取评论
     * @param params
     * @return
     */
    List<Comment> getComments(Map<String,Object> params);


}
